{foreach from=$categories item=category}
	<li id="category_{$category.id}"><input type="checkbox" name="categories[]" value="{$category.id}" {if in_array($category.id, $all_categories)}checked="checked"{/if} /> {$category.title|escape:"html":"UTF-8"}
		{if $category.children|@count}
		<ul style="margin-left:2em">
			{include file="shop/products/__categories_list.tpl.html" categories=$category.children}
		</ul>
		{/if}
	</li>
{/foreach}
